package com.gidgabs.modules.entity;

import com.gidgabs.dto.TbButlerOrderDto;

import java.io.Serializable;
import java.util.Date;


/**
 * 跑腿订单表
 *
 * @author lanyonglin
 * @email www.baidu.com
 * @date 2018-07-02 10:07:40
 */
public class TbButlerOrderEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Integer id;
    //订单编码
    private String orderCode;
    //用户编码
    private Integer userId;
    //取件地址
    private String pickupLocation;
    //交付地址
    private String deliveryPosition;
    //取件时间
    private Date pickupTime;
    //类型
    private Integer type;
    //重量
    private String weight;
    //开始时间
    private Date pickUpNow;
    //小费 单位 分
    private Integer tip;
    //注意提示
    private String note;
    //描述
    private String helpMe;
    //订单金额 单位 分
    private Integer orderPrice;
    //订单状态 0 等待支付 1 等待接单 2 进行中 3 完成
    private Integer orderStatus;
    //创建时间
    private Date createTime;
    //订单显示状态 0 未删除 1已删除
    private Integer deleteType;
    //订单来源用户id
    private Integer sourceUserId;
    //更新时间 用于订单状态更新时间
    private Date updateTime;

    public Integer getSourceUserId() {
        return sourceUserId;
    }

    public void setSourceUserId(Integer sourceUserId) {
        this.sourceUserId = sourceUserId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 设置：
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取：
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置：订单编码
     */
    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    /**
     * 获取：订单编码
     */
    public String getOrderCode() {
        return orderCode;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 设置：取件地址
     */
    public void setPickupLocation(String pickupLocation) {
        this.pickupLocation = pickupLocation;
    }

    /**
     * 获取：取件地址
     */
    public String getPickupLocation() {
        return pickupLocation;
    }

    /**
     * 设置：交付地址
     */
    public void setDeliveryPosition(String deliveryPosition) {
        this.deliveryPosition = deliveryPosition;
    }

    /**
     * 获取：交付地址
     */
    public String getDeliveryPosition() {
        return deliveryPosition;
    }

    /**
     * 设置：取件时间
     */
    public void setPickupTime(Date pickupTime) {
        this.pickupTime = pickupTime;
    }

    /**
     * 获取：取件时间
     */
    public Date getPickupTime() {
        return pickupTime;
    }

    /**
     * 设置：类型
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 获取：类型
     */
    public Integer getType() {
        return type;
    }

    /**
     * 设置：重量
     */
    public void setWeight(String weight) {
        this.weight = weight;
    }

    /**
     * 获取：重量
     */
    public String getWeight() {
        return weight;
    }

    public Date getPickUpNow() {
        return pickUpNow;
    }

    public void setPickUpNow(Date pickUpNow) {
        this.pickUpNow = pickUpNow;
    }

    /**
     * 设置：小费 单位 分
     */
    public void setTip(Integer tip) {
        this.tip = tip;
    }

    /**
     * 获取：小费 单位 分
     */
    public Integer getTip() {
        return tip;
    }

    /**
     * 设置：注意提示
     */
    public void setNote(String note) {
        this.note = note;
    }

    /**
     * 获取：注意提示
     */
    public String getNote() {
        return note;
    }

    /**
     * 设置：描述
     */
    public void setHelpMe(String helpMe) {
        this.helpMe = helpMe;
    }

    /**
     * 获取：描述
     */
    public String getHelpMe() {
        return helpMe;
    }

    /**
     * 设置：订单金额 单位 分
     */
    public void setOrderPrice(Integer orderPrice) {
        this.orderPrice = orderPrice;
    }

    /**
     * 获取：订单金额 单位 分
     */
    public Integer getOrderPrice() {
        return orderPrice;
    }

    /**
     * 设置：订单状态 0 等待支付 1 等待接单 2 进行中 3 完成
     */
    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    /**
     * 获取：订单状态 0 等待支付 1 等待接单 2 进行中 3 完成
     */
    public Integer getOrderStatus() {
        return orderStatus;
    }

    /**
     * 设置：创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取：创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置：订单显示状态 0 未删除 1已删除
     */
    public void setDeleteType(Integer deleteType) {
        this.deleteType = deleteType;
    }

    /**
     * 获取：订单显示状态 0 未删除 1已删除
     */
    public Integer getDeleteType() {
        return deleteType;
    }


    public TbButlerOrderDto toDto(){
        TbButlerOrderDto tbButlerOrderDto=new TbButlerOrderDto();
        tbButlerOrderDto.setSourceUserId(this.getSourceUserId());
        tbButlerOrderDto.setPickupLocation(this.getPickupLocation());
        tbButlerOrderDto.setDeliveryPosition(this.getDeliveryPosition());
        tbButlerOrderDto.setUpdateTime(this.getUpdateTime());
        tbButlerOrderDto.setId(this.getId());
        tbButlerOrderDto.setOrderCode(this.getOrderCode());
        tbButlerOrderDto.setUserId(this.getUserId());
        tbButlerOrderDto.setPickupTime(this.getPickupTime());
        tbButlerOrderDto.setType(this.getType());
        tbButlerOrderDto.setWeight(this.getWeight());
        tbButlerOrderDto.setPickUpNow(this.getPickUpNow());
        tbButlerOrderDto.setTip(this.getTip());
        tbButlerOrderDto.setNote(this.getNote());
        tbButlerOrderDto.setHelpMe(this.getHelpMe());
        tbButlerOrderDto.setOrderPrice(this.getOrderPrice());
        tbButlerOrderDto.setOrderStatus(this.getOrderStatus());
        tbButlerOrderDto.setCreateTime(this.getCreateTime());
        tbButlerOrderDto.setDeleteType(this.getDeleteType());
        return tbButlerOrderDto;
    }
}
